<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateRiCheng.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body>
    <form action="updateTrip.action" method="post">
     <table >
  <tr>
     <td colspan="4"><h2>创建日程表:</h2></td>
  </tr>
  <tr>
    <td>开始时间:</td>
    <td><input type="text" name="trip.starttime" readonly="readonly"  onClick="WdatePicker({isShowWeek:true,startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" value="<s:date name="trip.starttime" format="yyyy-MM-dd hh:mm:ss"/>"/></td>
    <td>结束时间:</td>
    <td><input type="text" name="trip.overtime" readonly="readonly"  onClick="WdatePicker({isShowWeek:true,startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"  value="<s:date name="trip.overtime" format="yyyy-MM-dd hh:mm:ss"/>"/></td>
  </tr>
  <input type="text" name="trip.id" style="display: none;" value="<s:property value="trip.id"/>" /> 
  <tr><td>标题：</td>
  <td> <input type="text" name="trip.title" value="<s:property value="trip.title"/>" /> </td></tr>
   <tr>
    <td>内容：</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr> <tr>
    <td colspan="4">  <textarea name="trip.content" id="textarea" cols="45" rows="5"><s:property value="trip.content"/></textarea></td>
    </tr>
   <tr>
    <td><input type="submit" value="提交" /></td>
    <td>&nbsp;</td>
    <td><input type="button" value="返回" onclick="location.href='toRiLi.action'" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
   </form>
  </body>
</html>
